package com.bbzn.device.client.dao.announce;

import com.bbzn.device.client.dataobject.AnnounceUser;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AnnounceUserMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(AnnounceUser record);

    int insertOrUpdate(AnnounceUser record);

    int insertOrUpdateSelective(AnnounceUser record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(AnnounceUser record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    AnnounceUser selectByPrimaryKey(Long id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(AnnounceUser record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(AnnounceUser record);

    List<AnnounceUser> findByAll(AnnounceUser announceUser);

    int updateBatch(List<AnnounceUser> list);

    int updateBatchSelective(List<AnnounceUser> list);

    int batchInsert(@Param("list") List<AnnounceUser> list);

    /**
     * delete by primary key
     * @param record primaryKey
     * @return deleteCount
     */
    int deleteSelective(AnnounceUser record);
}